'use strict';

var express = require('express');
var router = express.Router();
var redis = require('../db/redis.js');

/* GET users listing. */
router.post('/', function(req, res, next) {
  redis.getUser(res.locals._user.username, function(err, reply){
  	delete reply.password;
  	reply.icon = '/uploads/user/' + reply.icon;
  	res.send(reply);
  });
});


module.exports = router;
